package com.shanshui.fragmentback;

/**
 * @author mashanshui
 * @date 2021/12/24
 * @desc TODO
 */
public abstract class OnBackPressedCallbackV2 {
    public abstract boolean handlerBackPress();

    private Cancellable cancellable;

    public void setCancellable(Cancellable cancellable) {
        this.cancellable = cancellable;
    }

    public void remove() {
        cancellable.cancel();
    }
}
